package com.ljz.controller.app;


import com.ljz.common.core.controller.MyBaseController;
import com.ljz.common.utils.ReturnResult;
import com.ljz.service.BrandService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/app")
@Api(tags = "品牌接口")
public class BrandAppController extends MyBaseController {

    @Autowired
    BrandService  brandService;


    @ApiOperation("根据id查品牌信息")
    @GetMapping("/brand")
    public ReturnResult getBrand(Long brandId){
        return success("品牌信息",brandService.findBrandById(brandId));
    }
}
